package il.ac.braude.sona.ocsf.client;

import il.ac.braude.sona.control.LoginController;

import java.io.IOException;
import java.util.ArrayList;



public class ConnectToClientForTesting {
	private String host="localhost";
	private int port=12389;
	
	public ConnectToClientForTesting(){

	}
	
	public void connectToClient(ArrayList<Object> values){
		try {
			Client.initiateClient();
			Client.connect(host, port);
			LoginController loginController =  new LoginController();
			loginController.execLoginForTesting(values);
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	public void setHost(String host) {
		this.host=host;
	}

	public void setPort(int port) {
		this.port=port;
	}

}
